package com.hang.common;

import lombok.Getter;

/**
 * 统一返回结果状态信息类
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    IMPORT_FAIL(600,"导入信息失败"),
    POST_TASK_FAIL(601,"发布任务失败"),
    GET_LIST_FAIL(602,"获取信息失败"),
    LOGIN_AUTH(603,"未登录"),
    LOGIN_FAIL(604,"登录失败"),
    POST_FAIL(605,"审批错误"),
    PUNCH_FAIL(606,"打卡失败"),
    APPLY_FAIL(607,"申请失败"),
    GET_LOCAL_FAIL(608,"获取定位失败"),
    ;

    private Integer code;
    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
